package com.uroad.lib.widget;

import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;

public class MyViewPagerScroller extends Scroller {
    private int mScrollDuration = 2000;// 滑动速度

    public MyViewPagerScroller(Context context) {
            super(context);
    }

    public MyViewPagerScroller(Context context, Interpolator interpolator) {
            super(context, interpolator);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy, int duration) {
            super.startScroll(startX, startY, dx, dy, mScrollDuration);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy) {
            super.startScroll(startX, startY, dx, dy, mScrollDuration);
    }
}
